﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Algorithm.Struct
{
    public class AnyChildTree<T> where T : IComparable<T>
    {
        public AnyChildTreeNode<T> Root
        {
            get;
            private set;
        }
        public AnyChildTree(AnyChildTreeNode<T> root)
        {
            Root = root;
        }
    }

    public class AnyChildTreeNode<T> where T : IComparable<T>
    {
        private T _data;

        public TreeNode<T> Parent;

        public TreeNode<T> LeftNode;

        public TreeNode<T> RightBrotherNode;

        public AnyChildTreeNode(T data)
        {
            _data = data;
        }
    }
}
